package com.business.customer.mapper.auto;

import com.business.customer.model.auto.CustomerInfo;
import com.business.customer.model.auto.CustomerInfoExample;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * 客户信息 CustomerInfoMapper
 * @author LuJingyuan_自动生成
 * @email 674326842@qq.com
 * @date 2020-12-08 10:19:55
 */
public interface CustomerInfoMapper {
      	   	      	      	      	      	      	      	      	      	      	      	      
    long countByExample(CustomerInfoExample example);

    int deleteByExample(CustomerInfoExample example);
		
    int deleteByPrimaryKey(String id);
		
    int insert(CustomerInfo record);

    int insertSelective(CustomerInfo record);

    List<CustomerInfo> selectByExample(CustomerInfoExample example);
		
    CustomerInfo selectByPrimaryKey(String id);
		
    int updateByExampleSelective(@Param("record") CustomerInfo record, @Param("example") CustomerInfoExample example);

    int updateByExample(@Param("record") CustomerInfo record, @Param("example") CustomerInfoExample example); 
		
    int updateByPrimaryKeySelective(CustomerInfo record);

    int updateByPrimaryKey(CustomerInfo record);
  	
    List<CustomerInfo> selectByMap(@Param("map")Map<String,String> map);

    CustomerInfo getUniqueCustomerByUserId(@Param("userId")String userId);
}